<div *ngIf="lane">
  <div class="field grid">
    <label class="col-12 mb-2 md:col-2 md:mb-0">朝向</label>
    <div class="col-12 md:col-10">
      <p-dropdown [options]="orientations"
        [(ngModel)]="lane.Orientation"></p-dropdown>
    </div>
  </div>
  <div class="field grid mr-0">
    <div class="col-12 md:col-6 field grid">
      <label class="col-12 mb-2 md:col-4 md:mb-0">最小列</label>
      <div class="col-12 md:col-8">
        <p-inputNumber type="text"
          class="w-full p-inputtext-sm"
          placeholder="最小列"
          [required]="true"
          [(ngModel)]="lane.MinColumn" />
      </div>
    </div>
    <div class="col-12 md:col-6 field grid">
      <label class="col-12 mb-2 md:col-4 md:mb-0">最大列</label>
      <div class="col-12 md:col-8">
        <p-inputNumber type="text"
          class="w-full p-inputtext-sm"
          placeholder="最大列"
          [required]="true"
          [(ngModel)]="lane.MaxColumn" />
      </div>
    </div>
  </div>
  <div class="field grid mr-0">
    <div class="col-12 md:col-6 field grid">
      <label class="col-12 mb-2 md:col-4 md:mb-0">最小列MM</label>
      <div class="col-12 md:col-8">
        <p-inputNumber type="text"
          class="w-full p-inputtext-sm"
          placeholder="最小列MM"
          [(ngModel)]="lane.OffsetMin" />
      </div>
    </div>
    <div class="col-12 md:col-6 field grid">
      <label class="col-12 mb-2 md:col-4 md:mb-0">最大列MM</label>
      <div class="col-12 md:col-8">
        <p-inputNumber type="text"
          class="w-full p-inputtext-sm"
          placeholder="最大列MM"
          [(ngModel)]="lane.OffsetMax" />
      </div>
    </div>
  </div>
  <div class="field grid">
    <label class="col-12 mb-2 md:col-2 md:mb-0">是否双深位</label>
    <div class="col-12 md:col-10">
      <p-inputSwitch [(ngModel)]="lane.DoubleLine"
        class="block"></p-inputSwitch>
    </div>
  </div>
  <div class="field grid">
    <label class="col-12 mb-2 md:col-2 md:mb-0">是否显示</label>
    <div class="col-12 md:col-10">
      <p-inputSwitch [(ngModel)]="lane.IsVisible"
        class="block"></p-inputSwitch>
    </div>
  </div>
  <div class="field grid">
    <label class="col-12 mb-2 md:col-2 md:mb-0">SRM移动配置</label>
    <div class="col-12 md:col-10">
      <p-dropdown [(ngModel)]="lane.SrmField"
        [options]="fields"
        optionValue="Name"
        optionLabel="Description"></p-dropdown>
    </div>
  </div>
</div>